package com.shangguan.spring.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.shangguan.spring.beans.Permission;
import com.shangguan.spring.mapper.PermissionMapper;
import com.shangguan.spring.service.PermissionService;
@Service
public class PermissionServiceImpl implements PermissionService{

    @Resource
    private PermissionMapper permissionMapper;

    @Override
    public int deleteByPrimaryKey(Integer permissionid) {
        return permissionMapper.deleteByPrimaryKey(permissionid);
    }

    @Override
    public int insert(Permission record) {
        return permissionMapper.insert(record);
    }

    @Override
    public int insertSelective(Permission record) {
        return permissionMapper.insertSelective(record);
    }

    @Override
    public Permission selectByPrimaryKey(Integer permissionid) {
        return permissionMapper.selectByPrimaryKey(permissionid);
    }

    @Override
    public int updateByPrimaryKeySelective(Permission record) {
        return permissionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Permission record) {
        return permissionMapper.updateByPrimaryKey(record);
    }

}
